const ip = require('ip');
const merge = require('webpack-merge');

const { STATIC_PATH, PORT, PROXY } = require('../config');
const base = require('./webpack.config.base');

const config = merge(base, {
  mode: 'development',
  devServer: {
    port: PORT,
    noInfo: true,
    overlay: true,
    host: ip.address(),
    open: true,
    openPage: '',
    contentBase: STATIC_PATH,
    historyApiFallback: true,
    proxy: PROXY,
  }
});



module.exports = config;